﻿<UserControl x:Class="WhiteFlow.DevTrackingTool.UI.Views.BackstageNewTabView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:wfCommonCtl="clr-namespace:WhiteFlow.Wpf.Controls.Common;assembly=WhiteFlow.Wpf.Controls"
             mc:Ignorable="d"
             d:DesignHeight="397" d:DesignWidth="709">

    <Border Margin="20"
            Padding="10"
            BorderThickness="1"
            BorderBrush="#B2FFFFFF"
            Background="#66FFFFFF">

        <DockPanel LastChildFill="True">
            <Border BorderThickness="0,0,0,1" DockPanel.Dock="Top">
                <Border.BorderBrush>
                    <ImageBrush ImageSource="/WhiteFlow.DevTrackingTool.UI;Component/Resources/Images/Layout/dashed_border.jpg"
                                                        TileMode="Tile"
                                                        Viewport="0,0,4,1"
                                                        ViewportUnits="Absolute"
                                                        Stretch="Uniform" />
                </Border.BorderBrush>

                <TextBlock Text="New Worksheet" 
                                                   Grid.Row="0"
                                                   Margin="20,0,0,0" 
                                                   FontSize="48" 
                                                   Foreground="{StaticResource ResourceKey=ContentsBgBrush}" 
                                                   FontFamily="/WhiteFlow.DevTrackingTool.UI;Component/Resources/Fonts/#BIRTH OF A HERO" />
            </Border>

            <ScrollViewer Margin="5,10,5,5"
                                                  VerticalScrollBarVisibility="Auto"
                                                  HorizontalScrollBarVisibility="Auto">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="auto" />
                        <ColumnDefinition Width="auto" />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="auto" />
                    </Grid.RowDefinitions>

                    <wfCommonCtl:Bitmap Source="/WhiteFlow.DevTrackingTool.UI;Component/Resources/Images/New_256x256.png" />

                    <StackPanel Grid.Column="1" 
                                                        Orientation="Vertical" 
                                                        VerticalAlignment="Top"
                                                        TextElement.FontSize="14"
                                                        TextElement.Foreground="{StaticResource ResourceKey=ContentsBgBrush}">
                        <TextBlock Text="Worksheet Title" />
                        <TextBox Text="{Binding Path=BackstageNewDocumentName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                                         Width="250" />

                        <Button Margin="0,10,0,0"
                                                        VerticalAlignment="Top"
                                                        HorizontalAlignment="Left"
                                                        FontSize="12"
                                                        Command="{Binding Path=CreateNewWorksheetCommand}"
                                                        Style="{StaticResource ResourceKey=BackstageHoverButtonStyle}">
                            <Button.Content>
                                <StackPanel Orientation="Vertical">
                                    <Border HorizontalAlignment="Center">
                                        <wfCommonCtl:Bitmap Source="/WhiteFlow.DevTrackingTool.UI;Component/Resources/Images/NewWorksheet.png" />
                                    </Border>
                                    <TextBlock Text="Create" Margin="0,5,0,0" HorizontalAlignment="Center" />
                                </StackPanel>
                            </Button.Content>
                        </Button>
                    </StackPanel>
                </Grid>
            </ScrollViewer>
        </DockPanel>
    </Border>

</UserControl>